﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly="OpenAPI.Model" namespace="OpenAPI.Model.API">

	<class  name="OpenAPI.Model.API.DocumentInfo, OpenAPI.Model" table="T_API_DOCUMENT">

		<id name="DOC_CD" column="DOC_CD" type="String" length="50">
			<generator class="assigned" />
		</id>
		<property name="DOC_SUBJECT" column="DOC_SUBJECT" type="String" length="200" not-null ="true"/>
		<property name="DOC_DATETIME" column="DOC_DATETIME" type="DateTime" not-null ="true"/>
		<property name="DOC_AUTHOR" column="DOC_AUTHOR" type="String" length="50" />
		<property name="DOC_TAGS" column="DOC_TAGS" type="String" length="50" />
		<property name="DOC_BODY" type="StringClob">
			<column name="DOC_BODY" sql-type="NText"></column>
		</property>


	</class>

</hibernate-mapping>
